home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-12-20 | 5.1 KB | 154 lines | [TEXT/KAHL] |
- $$Loop Link.Open
- $$if IsWindow
- g$Worksheet.name$->Open(); /* Open this window */
- $$endif
- $$if IsModalDialog
- g$Worksheet.name$->BringUpDialog(); /* Open this modal dialog */
- $$endif
- $$if IsModelessDialog
- g$Worksheet.name$->Open(); /* Open this modeless dialog */
- $$endif
- $$if IsAlert
- g$Worksheet.name$->BringUpAlert(); /* Open this alert */
- $$endif
- $$EndLoop
- $$Loop Link.Close
- $$if IsWindow
- Add_UserEvent(UserEvent_Close_Window,ResW_$Worksheet.name$,0,0,nil); /* Close this window */
- $$endif
- $$if IsModelessDialog
- Add_UserEvent(UserEvent_Close_Window,ResD_$Worksheet.name$,0,0,nil); /* Close this modeless dialog */
- $$endif
- $$EndLoop
- $$Loop Link.SysBeep
- SysBeep(40); /* Do a SysBeep */
- $$EndLoop
- $$Loop Link.Sound
- Play_The_Sound(ResS_$Sound.name$); /* Play a sound */
- $$EndLoop
- $$Loop Link.MenuEnable
- EnableItem(Menu_$Menu.name$,0); /* Enable a menu list */
- $$EndLoop
- $$Loop Link.MenuDisable
- DisableItem(Menu_$Menu.name$,0); /* Disable a menu list */
- $$EndLoop
- $$Loop Link.ItemEnable
- EnableItem(Menu_$Menu.name$,MItem_$MenuItem.name$); /* Enable a menu item */
- $$EndLoop
- $$Loop Link.ItemDisable
- DisableItem(Menu_$Menu.name$,MItem_$MenuItem.name$); /* Disable a menu item */
- $$EndLoop
- $$Loop Link.ItemCheck
- CheckItem(Menu_$Menu.name$,MItem_$MenuItem.name$,true); /* Check a menu item */
- $$EndLoop
- $$Loop Link.ItemUncheck
- CheckItem(Menu_$Menu.name$,MItem_$MenuItem.name$,false); /* Uncheck a menu item */
- $$EndLoop
- $$Loop Link.ItemToggle
- GetItemMark(Menu_$Menu.name$,MItem_$MenuItem.name$,&tempChar); /* Toggle a menu item from checked to unchecked or other way */
- if (tempChar == 0)
- CheckItem(Menu_$Menu.name$,MItem_$MenuItem.name$,true); /* Check a menu item */
- else
- CheckItem(Menu_$Menu.name$,MItem_$MenuItem.name$,false); /* Uncheck a menu item */
- $$EndLoop
- $$Loop Link.PageSetup
- gPrinting->PageSetup(); /* Do Printing PageSetup */
- $$EndLoop
- $$Loop Link.Print
- gPrinting->Print_The_Data(); /* Do Printing */
- $$EndLoop
- $$Loop Link.FileOpen
- gFiles->Open_The_File(); /* Do file open */
- $$EndLoop
- $$Loop Link.FileSave
- gFiles->Save_The_File(); /* Do file save */
- $$EndLoop
- $$Loop Link.VolumeSelect
- gFiles->Select_Volume(); /* Select a volume */
- $$EndLoop
- $$Loop Link.Check
- $$if IsWindow
- SetCtlValue(theWS->Ctrl_$Control.name$,1); /* Set the checkbox */
- theWS->Value_$Control.name$ = 1;
- $$endif
- $$if IsDialog
- GetDItem(theDialog,ResD_$Control.name$,&DType,&DItem,&tempRect); /* Get the item handle */
- CItem = (ControlHandle)DItem; /* Change dialog handle to control handle */
- SetCtlValue(CItem,1);
- this->Value_$Control.name$ = 1;
- $$endif
- $$EndLoop
- $$Loop Link.Uncheck
- $$if IsWindow
- SetCtlValue(theWS->Ctrl_$Control.name$,0); /* Clear the checkbox */
- theWS->Value_$Control.name$ = 0;
- $$endif
- $$if IsDialog
- GetDItem(theDialog,ResD_$Control.name$,&DType,&DItem,&tempRect); /* Get the item handle */
- CItem = (ControlHandle)DItem; /* Change dialog handle to control handle */
- SetCtlValue(CItem,0);
- this->Value_$Control.name$ = 0;
- $$endif
- $$EndLoop
- $$Loop Link.Radio
- $$if IsWindow
- this->HandleCheckbox(theWS->theWindow,theWS->Ctrl_$Control.name$); /* Select this radio */
- $$endif
- $$if IsModalDialog
- SetCtlValue(CItem,1);
- this->Value_$Control.name$ = 1; /* Set the current Radio value */
-
- $$Loop RadioGroup
- ClearTheRadio(theDialog,ResD_$Control.name$,&this->Value_$Control.name$);
- $$EndLoop RadioGroup
- $$endif
- $$if IsModelessDialog
- myEvent.what = mouseDown;
- this->HandleEvent(&myEvent,theDialog,ResD_$Control.name$); /* Select this radio */
- $$endif
- $$EndLoop
- $$Loop Link.Hide
- $$if IsWindow
- HideControl(theWS->Ctrl_$Control.name$); /* Hide a control */
- $$endif
- $$if IsDialog
- GetDItem(theDialog,ResD_$Control.name$,&DType,&DItem,&tempRect); /* Get the item handle */
- CItem = (ControlHandle)DItem; /* Change dialog handle to control handle */
- HideControl(CItem); /* Hide a control */
- $$endif
- $$EndLoop
- $$Loop Link.Show
- $$if IsWindow
- ShowControl(theWS->Ctrl_$Control.name$); /* Show a control */
- $$endif
- $$if IsDialog
- GetDItem(theDialog,ResD_$Control.name$,&DType,&DItem,&tempRect); /* Get the item handle */
- CItem = (ControlHandle)DItem; /* Change dialog handle to control handle */
- ShowControl(CItem); /* Show a control */
- $$endif
- $$EndLoop
- $$Loop Link.Dim
- $$if IsWindow
- HiliteControl(theWS->Ctrl_$Control.name$,255); /* Dim, disable, a control */
- theWS->Enable_$Control.name$ = false;
- $$endif
- $$if IsDialog
- GetDItem(theDialog,ResD_$Control.name$,&DType,&DItem,&tempRect); /* Get the item handle */
- CItem = (ControlHandle)DItem; /* Change dialog handle to control handle */
- HiliteControl(CItem,255); /* Dim, disable, a control */
- this->Enable_$Control.name$ = false;
- $$endif
- $$EndLoop
- $$Loop Link.Undim
- $$if IsWindow
- HiliteControl(theWS->Ctrl_$Control.name$,0); /* Undim, enable, a control */
- theWS->Enable_$Control.name$ = true;
- $$endif
- $$if IsDialog
- GetDItem(theDialog,ResD_$Control.name$,&DType,&DItem,&tempRect); /* Get the item handle */
- CItem = (ControlHandle)DItem; /* Change dialog handle to control handle */
- HiliteControl(CItem,0); /* Undim, enable, a control */
- this->Enable_$Control.name$ = true;
- $$endif
- $$EndLoop
-